<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"       xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/resources/templates/template_site.xhtml">
        
        <ui:define name="content">
             
                <p:panel header="#{bundle.ViewItemTitle}">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>

                    <p:panelGrid columns="2">
                        <h:outputText value="#{bundle.ViewItemLabel_iditem}"/>
                        <h:outputText value="#{itemController.selected.iditem}" title="#{bundle.ViewItemTitle_iditem}"/>
                        <h:outputText value="#{bundle.ViewItemLabel_nomitem}"/>
                        <h:outputText value="#{itemController.selected.nomitem}" title="#{bundle.ViewItemTitle_nomitem}"/>
                        <h:outputText value="#{bundle.ViewItemLabel_quantiteitem}"/>
                        <h:outputText value="#{itemController.selected.quantiteitem}" title="#{bundle.ViewItemTitle_quantiteitem}"/>
                        <h:outputText value="#{bundle.ViewItemLabel_seuilmin}"/>
                        <h:outputText value="#{itemController.selected.seuilmin}" title="#{bundle.ViewItemTitle_seuilmin}"/>
                        <h:outputText value="#{bundle.ViewItemLabel_quantitecommande}"/>
                        <h:outputText value="#{itemController.selected.quantitecommande}" title="#{bundle.ViewItemTitle_quantitecommande}"/>
                        <h:outputText value="#{bundle.ViewItemLabel_desccourte}"/>
                        <h:outputText value="#{itemController.selected.desccourte}" title="#{bundle.ViewItemTitle_desccourte}"/>
                        <h:outputText value="#{bundle.ViewItemLabel_descdetail}"/>
                        <h:outputText value="#{itemController.selected.descdetail}" title="#{bundle.ViewItemTitle_descdetail}"/>
                    </p:panelGrid>
                    <br />
                    <h:commandLink action="#{itemController.destroyAndView}" value="#{bundle.ViewItemDestroyLink}"/>
                    <br />
                    <br />
                    <h:commandLink action="Edit" value="#{bundle.ViewItemEditLink}"/>
                    <br />
                    <h:commandLink action="#{itemController.prepareCreate}" value="#{bundle.ViewItemCreateLink}" />
                    <br />
                    <h:commandLink action="#{itemController.prepareList}" value="#{bundle.ViewItemShowAllLink}"/>
                    <br />
                    <br />
                    <h:commandLink value="#{bundle.ViewItemIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
             
        </ui:define>
    </ui:composition>

</html>
